﻿using Microsoft.Xna.Framework;
using MoLingsArmory.Content.Projectiles;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace MoLingsArmory.Content.Items.Weapons.Magic
{
    public class DeathRay : ModItem
    {
        public override void SetDefaults()
        {
            Item.damage = 60;
            Item.crit = 8;
            Item.DamageType = DamageClass.Magic;
            Item.mana = 22;
            Item.width = 24;
            Item.height = 24;
            Item.useAnimation = 12;            
            Item.useTime = 8;
            Item.useStyle = ItemUseStyleID.Shoot;
            Item.noMelee = true;
            Item.knockBack = 5f;
            Item.value = Item.sellPrice(0, 10);
            Item.rare = ItemRarityID.Yellow;
            Item.UseSound = SoundID.Item12;
            Item.autoReuse = true;
            Item.shoot = ModContent.ProjectileType<DeathRayProj>();
            Item.shootSpeed = 8f;
        }
        public override Vector2? HoldoutOffset()
        {
            return new Vector2(-2, 0);
        }
    }
}
